package com.springboot.sba.D3_Exception.Controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/e")
public class ExceptionController {
    @RequestMapping(path = "/t/{x}/{y}")
    public Object test(@PathVariable("x") int x, @PathVariable("y") int y) {
        System.out.println("计算");
        int z = x / y;
        return z;
    }
}
